<!--
  @author tanbiao
  @since 2019-11-21 18:56:50
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<!--表格id与lay-filter属性一致，统一定义为zmn-table-->
<table class="layui-table table-filter" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead >
        <tr>
            <!--规定复选框列置于第1列，居中显示-->
            <th lay-data="{field:'groupName', width:160, unresize:true, align:'center'}">城市分组</th>
            <!--规定“ID”列置于第3列，居中显示-->
            <th lay-data="{field:'cityNames', unresize:true, align:'center'}">城市</th>
            <th lay-data="{field:'groupId', unresize:true, align:'center',hide:true}">groupId</th>
            <th lay-data="{field:'priceStandard', hide:true}">一口价</th>
            <!--规定“最近修改时间”列靠后放置，居中显示-->
            <th lay-data="{field:'price', unresize:true, align:'center', width:300,edit:'text',templet: '#switchTpl'}">销售价</th>
            <th lay-data="{field:'internalSettlementPrice', unresize:true, align:'center', width:300,edit:json.faultItem.priceStandard==2?'text':''}">内部结算价</th>
            <th lay-data="{field:'externalSettlementPrice', unresize:true, align:'center', width:300,edit:json.faultItem.priceStandard==2?'text':''}">外部结算价</th>
            <!--规定操作列置于最后-->
            <!--其他规范
                值较大的数字列居右显示，并使用千分号；值较小的数字列可居中显示，
                金额列统一居右显示，默认精确到小数点后2位，并使用千分号，
                通常情况下，时间或日期列靠后放置(操作列前)，居中显示
                -->
        </tr>
    </thead>
    <tbody>
        <tr th:each="item:${items}">
            <td th:text="${item.groupName}">groupName</td>
            <td th:text="${item.cityNames}">cityNames</td>
            <td th:text="${item.groupId}">groupId</td>
            <td th:text="${faultItem.priceStandard==2?'一口价':'非一口价'}">priceStandard</td>
            <td></td>
            <td></td>
            <td ></td>
        </tr>
    </tbody>
</table>
